package week2;

import java.util.Calendar;

public class Ex19 {
    public static void main(String[] args) {
        Calendar cal = Calendar.getInstance();
        cal.set(1901,Calendar.JANUARY,1);

        int ans = 0;

        while (cal.get(Calendar.YEAR) < 2001){
            if (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY)
                ans++;
            cal.add(Calendar.MONTH,1);
        }
        System.out.println(ans);
    }
}
